home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicComboBoxUI$ItemHandler.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.1 KB  |  25 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ItemEvent;
  4. import java.awt.event.ItemListener;
  5. import javax.swing.ComboBoxModel;
  6.  
  7. public class BasicComboBoxUI$ItemHandler implements ItemListener {
  8.    // $FF: synthetic field
  9.    private final BasicComboBoxUI this$0;
  10.  
  11.    public BasicComboBoxUI$ItemHandler(BasicComboBoxUI var1) {
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public void itemStateChanged(ItemEvent var1) {
  16.       ComboBoxModel var2 = this.this$0.comboBox.getModel();
  17.       Object var3 = var2.getSelectedItem();
  18.       if (this.this$0.editor != null) {
  19.          this.this$0.comboBox.configureEditor(this.this$0.comboBox.getEditor(), var3);
  20.       }
  21.  
  22.       this.this$0.comboBox.repaint();
  23.    }
  24. }
  25.